﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class DispatchMunutesModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;


        private int _Defence_minutes_dispatch_ID;
        private string _Comptroller_Audotor;
        private string _General_coments;
        private DateTime _DispatchDate;
        private string _Dispatched_to;
        private int _Ministry_of_Defence__ID;
        private DateTime _Date_entered;
        private string _Entered_by;
        private string _DefenceMinutesNumber;
        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }


        public int Defence_minutes_dispatch_ID
        {
            get
            {
                return _Defence_minutes_dispatch_ID;
            }
            set
            {
                _Defence_minutes_dispatch_ID = value;

                OnPropertyChanged("Defence_minutes_dispatch_ID");
            }
        }

        public string Dispatched_to
        {
            get
            {
                return _Dispatched_to;
            }
            set
            {
                _Dispatched_to = value;

                OnPropertyChanged("Dispatched_tob");
            }
        }
 
   

        public string Comptroller_Audotor
        {
            get
            {
                return _Comptroller_Audotor;
            }
            set
            {
                _Comptroller_Audotor = value;

                OnPropertyChanged("Comptroller_Audotor");
            }
        }


        public string General_coments
        {
            get
            {
                return _General_coments;
            }
            set
            {
                _General_coments = value;

                OnPropertyChanged("General_coments");
            }
        }

        public DateTime DispatchDate
        {
            get
            {
                return _DispatchDate;
            }
            set
            {
                _DispatchDate = value;

                OnPropertyChanged("DispatchDate");
            }
        }
 

        public int Ministry_of_Defence__ID
        {
            get
            {
                return _Ministry_of_Defence__ID;
            }
            set
            {
                _Ministry_of_Defence__ID = value;

                OnPropertyChanged("Ministry_of_Defence__ID");
            }
        }

        public DateTime Date_entered
        {
            get
            {
                return _Date_entered;
            }
            set
            {
                _Date_entered = value;

                OnPropertyChanged("Date_entered");
            }
        }


        public string Entered_by
        {
            get
            {
                return _Entered_by;
            }
            set
            {
                _Entered_by = value;

                OnPropertyChanged("Entered_by");
            }
        }

        public string DefenceMinutesNumber
        {
            get
            {
                return _DefenceMinutesNumber;
            }
            set
            {
                _DefenceMinutesNumber = value;

                OnPropertyChanged("DefenceMinutesNumber");
            }
        }  


    }
}